<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h3 {
            width: 100px;
            height: 30px;
            margin: 0 auto;
            text-align: center;
        }

        .box {
            border-radius: 10px;
            margin: auto;
            width: 600px;
            height: 520px;
            background: greenyellow;
            padding-top: 5px;
        }

        .padding {
            border-radius: 10px;
            border: 2px solid greenyellow;
            margin: auto;
            width: 570px;
            height: 50px;
            background: white;
            margin-top: 10px;
            line-height: 50px;

        }

        .text {
            color: gray;
            float: right;
            margin-top: 12px;
            margin-right: 150px;
        }

        .zc {
            width: 70px;
            height: 25px;
            border-radius: 20px;
            background: grey;
            margin: auto;
            color: white;
            text-align: center;
            line-height: 25px;
            margin-top: 20px;
        }
    </style>
</head>

<body>
    <form oninput="x.value=parseInt(age.value)">
        <h3>注册表单</h3>
        <div class="box">
            <div class="padding">用户昵称:<input class="text" type="text" placeholder="请输入用户名"></div>
            <div class="padding">Email:<input class="text" type="email" placeholder="example@domam.com"></div>
            <div class="padding">工作年龄:<input class="text" type="range" id="age" min="18" max="65" value="18"><output name="x" for="age"></output></div>
            <div class="padding">年龄:<input class="text" type="number"></div>
            <div class="padding">工作年龄:<input class="text" type="date"></div>
            <div class="padding">个人主页:<input class="text" type="url"></div>
            <div class="padding">获取颜色值:<input class="text" type="color"></div>
            <div class="zc">注册</div>
        </div>
    </form>
</body>

</html>